Fedora 27
Sponsored Link

PHP + PHP-FPM
2017/12/26
 
Install PHP-FPM to make PHP scripts be fast.
[1]
[2] Install PHP-FPM.
[root@www ~]#
dnf -y install php-fpm
[3] Configure Apache httpd.
[root@www ~]#
mv /etc/httpd/conf.modules.d/15-php.conf /etc/httpd/conf.modules.d/15-php.conf.org

[root@www ~]#
systemctl start php-fpm

[root@www ~]#
systemctl enable php-fpm

[root@www ~]#
systemctl restart httpd

[4] Create phpinfo and access to it, then it's OK if "FPM/FastCGI" is displayed.
[root@www ~]#
echo '<?php phpinfo(); ?>' > /var/www/html/info.php

 
Tweet